import request from '@/utils/request'

// 获取摄像头视频流URL和Token
export function getCameraUrlAndToken(deviceSerial) {
  return request({
    url: `/camera/video-url/${deviceSerial}`,
    method: 'get'
  })
}

// 摄像头抓拍
export function captureImage(deviceSerial) {
  return request({
    url: `/camera/capture/${deviceSerial}`,
    method: 'post'
  })
}

// 获取历史图片
export function getHistoryImages(deviceSerial) {
  return request({
    url: `/camera/images/${deviceSerial}`,
    method: 'get'
  })
} 